<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查看回收商品每日更新表明细</title>
</head>
<body>
<form>
    <table border="1">
        <tr><td colspan="2"><h1>查看回收商品每日更新表明细</h1></td></tr>
        <tr>
            <td>更新ID</td>
            <td>
                   <span id="updateId"></span>
            </td>
        </tr>
        <tr>
            <td>商品ID</td>
            <td>
                   <span id="productId"></span>
            </td>
        </tr>
        <tr>
            <td>更新前回收价格</td>
            <td>
                   <span id="beforeUpdatePrice"></span>
            </td>
        </tr>
        <tr>
            <td>更新后回收价格</td>
            <td>
                   <span id="afterUpdatePrice"></span>
            </td>
        </tr>
        <tr>
            <td>创建时间</td>
            <td>
                   <span id="createTime"></span>
            </td>
        </tr>
        <tr>
            <td>其他</td>
            <td>
                   <span id="other1"></span>
            </td>
        </tr>
        <tr>
            <td>其他</td>
            <td>
                   <span id="other2"></span>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="button" id="fanhui" value="返回"/>
            </td>
        </tr>
    </table>
</form>
<script src="/js/jquery-1.12.4.js"></script>
<script>
    var param = location.href.substring(location.href.indexOf('?')+1);
    $.getJSON("/productupdateday/findById.json",param,function(detail){
        $("#updateId").text(detail.updateId);
        $("#productId").text(detail.productId);
        $("#beforeUpdatePrice").text(detail.beforeUpdatePrice);
        $("#afterUpdatePrice").text(detail.afterUpdatePrice);
        $("#createTime").text(detail.createTime);
        $("#other1").text(detail.other1);
        $("#other2").text(detail.other2);
    });
    $("#fanhui").click(function(){
        location.href="/admin/productupdateday/list.html";
    });
</script>

</body>
</html>